package com.base_java.pojo;

import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Data
@Getter
@Setter
@Builder
public class DisplayTaskManage {
    @Setter
    private Long id;

    private String taskName;

    private Integer intervalSeconds;

    private Integer enable;

    private Integer orientation;

    private Date createTime;

    private Date updateTime;

    private String contents;

    public DisplayTaskManage(Long id, String taskName, Integer intervalSeconds, Integer enable, Integer orientation, Date createTime, Date updateTime, String contents) {
        this.id = id;
        this.taskName = taskName;
        this.intervalSeconds = intervalSeconds;
        this.enable = enable;
        this.orientation = orientation;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.contents = contents;
    }

    public DisplayTaskManage() {
        super();
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName == null ? null : taskName.trim();
    }

    public void setIntervalSeconds(Integer intervalSeconds) {
        this.intervalSeconds = intervalSeconds;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public void setOrientation(Integer orientation) {
        this.orientation = orientation;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setContents(String contents) {
        this.contents = contents == null ? null : contents.trim();
    }
}